/**
 * 
 */
package com.effectivcrm.view.form;

import java.util.HashSet;
import java.util.Set;

import org.thymeleaf.dialect.AbstractDialect;
import org.thymeleaf.processor.IProcessor;

/**
 * @author Dhrubo
 *
 */
public class ExtraSpringDialect extends AbstractDialect {

	/* (non-Javadoc)
	 * @see org.thymeleaf.dialect.IDialect#getPrefix()
	 */
	@Override
	public String getPrefix() {
		return "ext";
	}

	/* (non-Javadoc)
	 * @see org.thymeleaf.dialect.IDialect#isLenient()
	 */
	@Override
	public boolean isLenient() {
		return true;
	}

	@Override
	public Set<IProcessor> getProcessors() {
		final Set<IProcessor> processors = new HashSet<IProcessor>();
		processors.add(new FormElementProcessor());
		
		return processors;
	}

	
}
